package cn.bx.bid.ctrl;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.*;
//模拟rdis配置
//演示基本属性和集合的配置
@Data
@Configuration
@ConfigurationProperties(prefix = "java63")
//@propertyLocation
public class RedisConfig {

    private String ip;
    private int port;

    //集合
    private List<String> animals=new ArrayList<>();

    private Map<String,String> city=new HashMap<>();


    @Override
    public String toString() {
        return "RedisConfig{" +
                "ip='" + ip + '\'' +
                ", port=" + port +
                ", animals=" + animals +
                ", city=" + city +
                '}';
    }
}
